package demo.chef.impl;

import demo.CuisinesStyle;
import demo.dishes.AbstractDishes;
import demo.chef.AbstractChef;

/**
 * 厨师实例对象
 * @author ZhouWeiBo
 * @create 2022/6/7
 */
public class WuYongChef extends AbstractChef {


    public WuYongChef(Integer chefNumber, CuisinesStyle cuisinesStyle) {
        super(chefNumber, cuisinesStyle);
    }

    @Override
    public void cooking(AbstractDishes dishes) {
        this.status = 1;
        this.dishes = dishes;
        System.out.println(">>>>> 已安排" + this.chefNumber + " 号吴勇师傅做" + dishes.getDishesName() );
    }

    @Override
    public void cookingFinish() {
        this.status = 0;
        System.out.println(">>>>> " + this.chefNumber + " 号师傅已做完" + dishes.getDishesName() );
        this.dishes = null;
    }
}
